from PyQt5 import QtWidgets, QtCore
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
import sys
from tags_ui import *


class Window(QDialog):
    def __init__(self):
        super().__init__()

        # setting title
        self.setWindowTitle("Tags ")

        # setting geometry
        self.setGeometry(QtCore.QRect(0, 0, 600, 300))

        # calling method
        self.init_ui()

        # showing all the widgets
        self.show()

    # method for widgets
    def init_ui(self):
        # creating a push button
        self.layout = QHBoxLayout()
        self.tagWidget = TagsEditor()
        self.layout.addWidget(self.tagWidget)
        self.setLayout(self.layout)


App = QApplication(sys.argv)

# create the instance of our Window
window = Window()

# start the app
sys.exit(App.exec())
